	Once you have generated a 1000 second sample of a piano, you will run the "FFT To Harmonic Generator" script. You will need to make modifications to the 
directory for where the piano sample is located, and you may need to change what fundamental frequency is used by manually changing the "fundamental_frequency" variable.
Once the script runs, it will generate a list of many harmonics, which you will have to copy paste into an empty synth preset that I made. This script will be revised
further, since it is not a very elegant solution.


To find where you need to copy paste this data, open the preset that is best suited for the fundamental frequency you chose (440 Hz for my sample), and you'll find
parts of the XML where you see the same format for the harmonics, and it looks something like this:

                              <HARMONIC id="1">
                                <par name="mag" value="127"/>
                                <par name="phase" value="64"/>
                              </HARMONIC>

If you find these, you have found the part that's responsible for storing the harmonic amplitudes, and also the volume of the whole oscillator. Before you copy paste
the harmonics though, I find it easier to type the volumes for the oscillators first. The volume parameter is found just below the harmonics:


                            <HARMONICS>
                              <HARMONIC id="1">
                                <par name="mag" value="127"/>
                                <par name="phase" value="64"/>
                              </HARMONIC>
                            </HARMONICS>
                          </OSCIL>
                          <AMPLITUDE_PARAMETERS>
                            <par name="panning" value="64"/>
        Here ------>        <par name="volume" value="100"/>
                            <par_bool name="volume_minus" value="no"/>
                            <par name="velocity_sensing" value="127"/>
                            <par_bool name="amp_envelope_enabled" value="yes"/>


Once you find the first oscillator, type in the volume for each oscillator in the same order that you find them as you scroll down. If you accidentally miss one, you
will need to restart since the volumes are in the wrong place.

After the oscillator volumes are correctly typed in, you can copy paste the harmonics into the oscillators. Pay attention to how each string of oscillators is separated
by 3 lines. If you see separation, that means that the oscillator's harmonics has ended, and then you move to the next oscillator. Don't copy paste all of the harmonics
into just one oscillator, otherwise it won't work properly. Hopefully this all made sense, and you can begin making your own synth pianos!



While you have imported FFT data into the synth, keep in mind that you may have to tweak other parameters to get a result you're happy with. You may want to disable the
default filter parameters I added, since it adds a low-pass filter to the waveform and it muffles the sound further when lower velocities are played.